#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

#define ROW 7
#define long (ROW - 1) * 2 + 1

int main()
{
	char a[long];
	int j = (ROW + 1) / 2;
	for (int i = 0; i < long; ++i)
	{
		a[i] = ' ';
	}
	int b;
	int c = 0;
	for (int i = 0; i < ROW; ++i)
	{
		if (i == 0)
		{
			b = (long + 1) / 2 - 1;
			a[b] = '*';
			++c;
		}
		else
		{
			a[b - c] = '*';
			a[b + c] = '*';
			++c;
		}
		for (int j = 0; j<long; ++j)
		{
			printf("%c",a[j]);
			
		}
		printf("\n");
	}
	--c;
	for (int i = 0; i < ROW - 1; ++i)
	{
		if (c == 0)
		{
			
		}
		else
		{
			a[b - c] = ' ';
			a[b + c] = ' ';
			--c;
		}
		for (int j = 0; j<long; ++j)
		{
			printf("%c", a[j]);

		}
		printf("\n");
	}
	return 0;
}